using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EcsSiteDSTableAdapters;
using System.ComponentModel;

/// <summary>
/// Summary description for NewsDetailsBLL
/// </summary>

namespace SiteECSWeb
{
    [DataObject]
    public class FairsOptionsBLL
    {
        #region ClassConstructor
        public FairsOptionsBLL()
        {

        }
        #endregion

        private FairsOptionsTableAdapter _FairsOptionsAdapter;

        protected FairsOptionsTableAdapter FairsOptionsAdapter
        {
            get
            {
                if (_FairsOptionsAdapter == null)
                {
                    _FairsOptionsAdapter = new FairsOptionsTableAdapter();
                }
                return _FairsOptionsAdapter;
            }
        }

        #region SelectableTable

        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.FairsOptionsDataTable
            GetFairsCountMonthByCityIDYear(int CityID, int Year)
        {
            return FairsOptionsAdapter.GetFairsCountMonthDataByCityIDYear(CityID, Year);
        }
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.FairsOptionsDataTable
            GetFairsCountCountry()
        {
            return FairsOptionsAdapter.GetFairsCountCountryData();
        }
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.FairsOptionsDataTable
            GetFairsCountMonthByInternalOffYear(int Int_Off, int Year, int Month)
        {
            return FairsOptionsAdapter.GetFairsCountMonthDataByInternalOffYear(Int_Off, Year, Month);
        }


        #endregion
    }
}